package com.jlastu.androiduidemo.views;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.jlastu.androiduidemo.R;
import com.jlastu.androiduidemo.widget.HeaderView;

public class Edit extends AppCompatActivity {

    private HeaderView mheaderview1;
    private Button mb1;
    private EditText ma9;
    private EditText ma10;
    private Button mlogin;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.edit);
        mheaderview1=findViewById(R.id.header_view1);
        mheaderview1.setTitle("修改密码");

        ma9 = findViewById(R.id.a9);
        ma10 = findViewById(R.id.a10);


        mb1 = findViewById(R.id.b1);
        mb1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });


        mlogin = findViewById(R.id.login);
        mlogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                if () {
                Toast.makeText(Edit.this, "修改成功", Toast.LENGTH_SHORT).show();
                Intent intent=new Intent(Edit.this, SettingsActivity.class);
                startActivity(intent);
//                }
//                else {
//                    Toast.makeText(Edit.this, "原密码错误", Toast.LENGTH_SHORT).show();
//                }
            }
        });


    }



}
